#!/bin/bash

records=$1

for i in {2,3,4,5}
do
	apaga	
	echo "base$i"
	echo -n "insercao"
	time ./kdb_tree -m 100 -ia base$i/$records.txt -nf 7 -cf 7 -ot tree$records -h C > /dev/null 2> /dev/null
	echo -n "busca"
	time ./kdb_tree -m 100 -nf 7 -cf 7 -ot tree$records -h C -qp query.txt  > /dev/null 2> /dev/null 
done
